//
//  MyTeamNumCell.m
//  Shengzhuli
//
//  Created by FXGuo on 17/3/26.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "MyTeamNumCell.h"
#import "TeamModel.h"

@interface MyTeamNumCell()
@property (weak, nonatomic) IBOutlet UILabel *numLab;



@end

@implementation MyTeamNumCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setTeams:(NSArray *)teams
{
    _teams = teams;
    NSInteger count = 0;
    for (TeamModel *model in teams) {
        count += model.num;
    }
    self.numLab.text = [NSString stringWithFormat:@"%zd人",count];
}

@end
